<div class="pageContent">
	<form method="post" action="<?php echo site_url('backend/areas/add') ?>" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent nowrap" layoutH="56">
			<dl>
				<dt>启用地区：</dt>
				<dd><input name="address" type="text" size="30" class="required"/></dd>
			</dl>
			<dl>
				<dt>所属市区：</dt>
				<dd>	
					<select class="combox" name="province_id" ref="w_combox_add_city" refUrl="<?php echo site_url('backend/areas/searchAreas')?>&parent={value}">
						<option value="">省市</option>
						<?php foreach ($data as $v):?>
						<option value="<?php echo $v[0]?>"><?php echo $v[1]?></option>
						<?php endforeach;?>
					</select>
					<select class="combox" name="city_id" id="w_combox_add_city" ref="w_combox_add_district" refUrl="<?php echo site_url('backend/areas/searchAreas')?>&parent={value}">
						<option value="">城市</option>
					</select>
					<select class="combox" name="district_id" id="w_combox_add_district">
						<option value="">区县</option>
					</select>
				</dd>
			</dl>
			<dl>
				<dt>类型：</dt>
				<select name="type" class="required combox">
					<option value="2">仓库</option>
					<option value="1" selected="selected">网点</option>
				</select>
			</dl>
			<dl>
				<label>绑定小仓库：</label>
				<input name="address_districtName" type="text" size="30" readonly="readonly" value="<?php echo $this->input->post('address_districtName')?>"/>
				<input type="hidden" name="address_id" type="text" value="<?php echo $this->input->post('warehouse_address_id')?>" readonly/>
				<a class="btnLook" href="<?php echo site_url('backend/warehouse/addAgent')?>" lookupGroup="address">仓库</a>
			</dl>
			<dl>
				<dt>状态：</dt>
				<select name="status" class="required combox">
					<option value="10" selected="selected">启用</option>
					<option value="0">禁用</option>
				</select>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
